package homework22;

public class Client {
    public static void main(String[] args) {
        Component component1;
        Component component2;
        Component component3;
        Composite composite1 = new Composite("图像文件...");
        Composite composite2 = new Composite("文本文件...");
        Composite composite3 = new Composite("视屏文件...");
        component1 = new Left("黄金矿工.png...");
        component2 = new Left("论文.doc...");
        component3 = new Left("抖肩舞.mpv...");
        composite1.add(component1);
        composite1.operation();
        composite2.add(component2);
        composite2.operation();
        composite3.add(component3);
        composite3.operation();
    }
}
